import request from '@/utils/request'

export default {

  // 赞助1元-条件分页查询
  getList(current, size, data) {
    return request({
      url: `/system/patron/search/${current}/${size}`,
      method: 'post',
      data
    })
  },
  // 赞助1元-根据ID删除
  deleteById(id) {
    return request({
      url: `/system/patron/remove/${id}`,
      method: 'delete'
    })
  },
  // VIP赞助-条件分页查询
  getSponsorList(current, size, data) {
    return request({
      url: `/system/sponsor/search/${current}/${size}`,
      method: 'post',
      data
    })
  },
  // VIP赞助-根据ID删除
  deleteBySponsorId(id) {
    return request({
      url: `/system/sponsor/remove/${id}`,
      method: 'delete'
    })
  },
  // 投图赞助-条件分页查询
  getLooperList(current, size, data) {
    return request({
      url: `/article/looper/search/${current}/${size}`,
      method: 'post',
      data
    })
  },
  // 投图赞助-审核通过
  auditPass(id) {
    return request({
      url: `/article/looper/pass/${id}`,
      method: 'get'
    })
  },
  // 投图赞助-审核不通过
  auditNoPass(id, fail) {
    return request({
      url: `/article/looper/fail/${id}/${fail}`,
      method: 'get'
    })
  },
  // 投图赞助-根据ID删除
  deleteByLooperId(id) {
    return request({
      url: `/article/looper/admin/remove/${id}`,
      method: 'delete'
    })
  }
}
